using BasicData.API.Dtos;
using BasicData.ErrorCode;
using MediatR;
using System;
using System.ComponentModel.DataAnnotations;

namespace BasicData.API.Application.Command
{
    /// <summary>
    /// 添加商品命令
    /// </summary>
    public class AddGoodsCommand : IRequest<APIResult<GoodsDTO>>
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        [Required(ErrorMessage = "商品名称不能为空")]
        [MaxLength(100, ErrorMessage = "商品名称最大长度为100")]
        public string GoodsName { get; set; }
        
        
    }
} 